package com.youhome.mobile.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by chen365 on 2019/03/04.
 */
@Data
@ApiModel
public class DTOHouseSearch {

    @ApiModelProperty(value = "查询方法(zip,address,city)")
    private String action;

    @ApiModelProperty(value = "查询条件")
    private String keyword;

    @ApiModelProperty(value = "页码")
    private Integer page;

    @ApiModelProperty(value = "每页条数,默认20条")
    private Integer pageSize;

    @ApiModelProperty(value = "房屋类型")
    private String type;

    @ApiModelProperty(value = "卧室数量")
    private Integer beds;

    @ApiModelProperty(value = "卫浴数量")
    private Integer baths;

    @ApiModelProperty(value = "房龄")
    private Integer year;

    @ApiModelProperty(value = "最小面积")
    private Double minSize;

    @ApiModelProperty(value = "最大面积")
    private Double maxSize;

    @ApiModelProperty(value = "最小价格")
    private Double minPrice;

    @ApiModelProperty(value = "最大价格")
    private Double maxPrice;

    @ApiModelProperty(value = "排序字段(bedroomCount：卧室数量;bathroomCount：浴数量;yearBuilt：房龄;livingArea：面积;listPrice:价格)")
    private String filed;

    @ApiModelProperty(value = "排序方向(asc：升序  desc：降序)")
    private String direction;
}
